type FieldType = 'select' | 'input' | 'date' | 'range' | 'slot'

export interface FieldItem {
    type: FieldType | string;
    name: string;
    label?: string;
    hidden?: boolean;
    placeholder?: any;
    xxl?: number;
    xl?: number;
    lg?: number;
    md?: number;
    sm?: number;
    allowClear?: boolean;
    mode?: string;
    format?: string;
    showTime?: any;
    options?: any;
    props?: Record<string, any>;
    valueFormat?: string;
    onChange?: any;
    slotName?: string;
    filterTreeOption?: any;
    treeData?: any[];
    onSelect?: any;
    dropdownStyle?: any;
}

export interface IAdaptiveSearchFormProps {
    items: FieldItem[];
    labelCol?: Record<string, any>;
    wrapperCol?: Record<string, any>;
    initialValues?: Record<string, any>;
    auth?: string
}